.NET Framework Class Library |
Partitioner..::.Create<(Of <(TSource>)>) Method (array<TSource>[]()[], Boolean) |
Partitioner Class See Also Send Feedback |
Creates an orderable partitioner from a Array instance.
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function Create(Of TSource) ( _ array As TSource(), _ loadBalance As Boolean _ ) As OrderablePartitioner(Of TSource) |
C# |
---|
public static OrderablePartitioner<TSource> Create<TSource>( TSource[] array, bool loadBalance ) |
Parameters
- array
- Type: array<
TSource
>[]()[]
The array to be partitioned.
- loadBalance
- Type: System..::.Boolean
A Boolean value that indicates whether the created partitioner should dynamically load balance between partitions rather than statically partition.
Type Parameters
- TSource
- Type of the elements in source array.